@extends('admin.layout.index')
@section('content')
@if (count($errors) > 0)
    <div class="mws-form-message error">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif
<div class="mws-panel grid_8">
	<div class="mws-panel-header">
    	<span>商品照片添加</span>
    </div>
    <div class="mws-panel-body no-padding">
    	<form action="/admin/goods/picupdate" class="mws-form" method='post' enctype="multipart/form-data">
    		{{csrf_field()}}
            <input type="hidden" name="id" value="{{$data['id']}}">
    		<div class="mws-form-inline">
                <div class="mws-form-row">
                    <label class="mws-form-label">商品货号</label>
                    <div class="mws-form-item">
                        <input type="text" value="{{$data['articlenum']}}" disabled>
                    </div>
                </div>
                <div class="mws-form-row"  style="width:55%;">
                    <label class="mws-form-label">商品首页照片</label>
                    <div class="mws-form-item">
                        <input type="file" class="small" name="goodspic1">
                        <img src="/uploads/images/goods/{{$data['goodspic1']}}" alt="">
                    </div>
                </div>
                <div class="mws-form-row"  style="width:55%;">
                    <label class="mws-form-label">商品第二张照片</label>
                    <div class="mws-form-item">
                        <input type="file" class="small" name="goodspic2">
                        <img src="/uploads/images/goods/{{$data['goodspic2']}}" alt="">
                    </div>
                </div>
                <div class="mws-form-row"  style="width:55%;">
                    <label class="mws-form-label">商品第三张照片</label>
                    <div class="mws-form-item">
                        <input type="file" class="small" name="goodspic3">
                        <img src="/uploads/images/goods/{{$data['goodspic3']}}" alt="">
                    </div>
                </div>
                <div class="mws-form-row"  style="width:55%;">
                    <label class="mws-form-label">商品第四张照片</label>
                    <div class="mws-form-item">
                        <input type="file" class="small" name="goodspic4">
                        <img src="/uploads/images/goods/{{$data['goodspic4']}}" alt="">
                    </div>
                </div>
                <div class="mws-form-row"  style="width:55%;">
                    <label class="mws-form-label">商品第五张照片</label>
                    <div class="mws-form-item">
                        <input type="file" class="small" name="goodspic5">
                        <img src="/uploads/images/goods/{{$data['goodspic5']}}" alt="">
                    </div>
                </div>      
    		</div>
    		<div class="mws-button-row">
    			<input type="submit" class="btn btn-danger" value="修改">
    			<input type="reset" class="btn " value="重置">
    		</div>
    	</form>
    </div>    	
</div>
@endsection
